OPTIONS LINESIZE=80;
TITLE 'example';

/****
These macros computes scores for the implicit measures.
*/

/*outputs a dataset with subjects as rows and the sid-exclusion variable as the only other variable*/
%macro getSIDExc(inLib, outLib, inData, outData, session_id, excVar);
PROC SORT DATA=&inLib..&inData; BY &session_id;RUN;
PROC UNIVARIATE DATA=&inLib..&inData NOPRINT;VAR &excVar; OUTPUT OUT=&outLib..&outData mode=&excVar; BY &session_id;RUN;
%mend getSIDExc;
